setScrollIndicators

open fun setScrollIndicators(@NonNull view: View, indicators: Int)(source)

Sets the state of all scroll indicators.

See setScrollIndicators for usage information.

Parameters

view

view for which to set the state.

indicators

a bitmask of indicators that should be enabled, or 0 to disable all indicators

See also


open fun setScrollIndicators(@NonNull view: View, indicators: Int, mask: Int)(source)

Sets the state of the scroll indicators specified by the mask. To change all scroll indicators at once, see setScrollIndicators.

When a scroll indicator is enabled, it will be displayed if the view can scroll in the direction of the indicator.

Multiple indicator types may be enabled or disabled by passing the logical OR of the desired types. If multiple types are specified, they will all be set to the same enabled state.

For example, to enable the top scroll indicatorExample: setScrollIndicators

Parameters

view

view for which to set the state.

indicators

the indicator direction, or the logical OR of multiple indicator directions. One or more of:

mask

the mask for scroll indicators.

See also